<?php
	class FooterWidget extends CWidget
	{
		public function run()
		{
			$this->getfooter();
		}
		public function getfooter()
		{
			if (isset(Yii::app()->session['_lang'])) {
	            $language = Yii::app()->session['_lang'];      
	        }
	        else{
	            Yii::app()->session['_lang'] = 'vi';
	            $language = Yii::app()->session['_lang'];
	        }
			$this->render('footer',array('language' => $language));
		}
	}
?>